<el-container class="container">
  <el-header class="header">
    <el-row>
      <el-col :span="8">
        <div class="grid-content bg-purple">
          <img src="../../assets/images/logo.png" alt />
        </div>
      </el-col>
      <el-col :span="8">
        <div class="grid-content bg-purple-light">
          <h1>电商后台管理系统</h1>
        </div>
      </el-col>
      <el-col :span="8" class="right">
        <div class="grid-content bg-purple">
          先生之风，山高水长
          <button @click="startLogout" type="text">退出</button>
        </div>
      </el-col>
    </el-row>
  </el-header>
  <el-container>
    <el-aside width="200px" class="aside">
      <el-menu
        :default-active="$route.path"
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        router
      >
        <el-submenu v-for="item1 in menusList" :index="item1.id+''" :key="item1.id">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>{{ item1.authName }}</span>
          </template>
          <el-menu-item
            v-for="item2 in item1.children"
            :index="'/'+item2.path"
            :key="item2.id"
            >{{item2.authName}}</el-menu-item
          >
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-main class="main">
      <!-- 在这里展示嵌套路由的数据 -->
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
